home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / devices / console.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  2KB  |  103 lines

  1. #ifndef DEVICES_CONSOLE_H
  2. #define DEVICES_CONSOLE_H
  3. /*
  4. **    $Filename: devices/console.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.11 $
  7. **    $Date: 90/11/07 $
  8. **
  9. **    Console device command definitions
  10. **
  11. **    (C) Copyright 1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include    "exec/types.h"
  17. #endif
  18.  
  19. #ifndef EXEC_IO_H
  20. #include    "exec/io.h"
  21. #endif    /* EXEC_IO_H */
  22.  
  23. /****** Console commands ******/
  24. #define CD_ASKKEYMAP        (CMD_NONSTD+0)
  25. #define CD_SETKEYMAP        (CMD_NONSTD+1)
  26. #define CD_ASKDEFAULTKEYMAP    (CMD_NONSTD+2)
  27. #define CD_SETDEFAULTKEYMAP    (CMD_NONSTD+3)
  28.  
  29. /****** SGR parameters ******/
  30.  
  31. #define SGR_PRIMARY    0
  32. #define SGR_BOLD    1
  33. #define SGR_ITALIC    3
  34. #define SGR_UNDERSCORE    4
  35. #define SGR_NEGATIVE    7
  36.  
  37. #define    SGR_NORMAL    22    /* default foreground color, not bold */
  38. #define    SGR_NOTITALIC    23
  39. #define    SGR_NOTUNDERSCORE 24
  40. #define    SGR_POSITIVE    27
  41.  
  42. /* these names refer to the ANSI standard, not the implementation */
  43. #define SGR_BLACK    30
  44. #define SGR_RED        31
  45. #define SGR_GREEN    32
  46. #define SGR_YELLOW    33
  47. #define SGR_BLUE    34
  48. #define SGR_MAGENTA    35
  49. #define SGR_CYAN    36
  50. #define SGR_WHITE    37
  51. #define SGR_DEFAULT    39
  52.  
  53. #define SGR_BLACKBG    40
  54. #define SGR_REDBG    41
  55. #define SGR_GREENBG    42
  56. #define SGR_YELLOWBG    43
  57. #define SGR_BLUEBG    44
  58. #define SGR_MAGENTABG    45
  59. #define SGR_CYANBG    46
  60. #define SGR_WHITEBG    47
  61. #define SGR_DEFAULTBG    49
  62.  
  63. /* these names refer to the implementation, they are the preferred */
  64. /* names for use with the Amiga console device. */
  65. #define SGR_CLR0    30
  66. #define SGR_CLR1    31
  67. #define SGR_CLR2    32
  68. #define SGR_CLR3    33
  69. #define SGR_CLR4    34
  70. #define SGR_CLR5    35
  71. #define SGR_CLR6    36
  72. #define SGR_CLR7    37
  73.  
  74. #define SGR_CLR0BG    40
  75. #define SGR_CLR1BG    41
  76. #define SGR_CLR2BG    42
  77. #define SGR_CLR3BG    43
  78. #define SGR_CLR4BG    44
  79. #define SGR_CLR5BG    45
  80. #define SGR_CLR6BG    46
  81. #define SGR_CLR7BG    47
  82.  
  83.  
  84. /****** DSR parameters ******/
  85.  
  86. #define DSR_CPR        6
  87.  
  88. /****** CTC parameters ******/
  89. #define CTC_HSETTAB    0
  90. #define CTC_HCLRTAB    2
  91. #define CTC_HCLRTABSALL    5
  92.  
  93. /******    TBC parameters ******/
  94. #define TBC_HCLRTAB    0
  95. #define TBC_HCLRTABSALL    3
  96.  
  97. /******    SM and RM parameters ******/
  98. #define M_LNM    20    /* linefeed newline mode */
  99. #define M_ASM    ">1"    /* auto scroll mode */
  100. #define M_AWM    "?7"    /* auto wrap mode */
  101.  
  102. #endif    /* DEVICES_CONSOLE_H */
  103.